Skip to content

Feedback button alignment - #160

Merged
lukefretwell merged 2 commits into
mainfrom
feedback-button-alignment
Aug 2, 2026
Merged

Feedback button alignment#160
lukefretwell merged 2 commits into
mainfrom
feedback-button-alignment

Conversation

@lukefretwell

Copy link
Copy Markdown
Contributor

No description provided.

The dev server's DOM-morph reload strips the data-bs-theme attribute
(matchRootAttributes syncs <html> to the freshly server-rendered HTML,
which never has this client-only attribute). Consolidate the theme
script into a self-healing version: sets theme on load, re-syncs on
OS change, and adds a MutationObserver that restores the attribute
the instant anything strips it. Removes the now-redundant duplicate
matchMedia listener from js.html.
@lukefretwell
lukefretwell merged commit 4fe19be into main Aug 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant